From 42be26f1b106b0f5bf7f924f9e403e81d4952d55 Mon Sep 17 00:00:00 2001 From: nana-4 Date: Tue, 22 Sep 2020 10:37:04 +0900 Subject: [PATCH] Adwaita: Improve columnview styling - Move padding from parent row to child cell. - Align horizontal sizing of cell with header button. - Properly support GtkColumnView:show-column-separators. - Change cell height with and without .data-table. --- gtk/theme/Adwaita/_common.scss | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 35788a84c4..fe5faee0df 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -3116,6 +3116,33 @@ row { } } +columnview { + // move padding to child cells + > listview > row { + padding: 0; + + // align horizontal sizing with header buttons + > cell { + padding: 8px 6px; + + &:not(:last-child) { + border-right: 1px solid transparent; + } + } + } + + // make column separators visible when :show-column-separators is true + &.column-separators > listview > row > cell { + border-right-color: $_treeview_borders_color; + } + + // shrink vertically for .data-table + &.data-table > listview > row > cell { + padding-top: 2px; + padding-bottom: 2px; + } +} + /******************************************************** * Data Tables * * treeview like tables with individual focusable cells * -- 2.30.2